import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../components/HomeContent.vue";
import Login from "@/components/Login.vue";
import Register from "@/components/Register.vue";
import ResetPassword from "@/components/ResetPassword.vue";
import UserHaveTask from "../components/UserHaveTask.vue";
import AdminProfile from "@/components/AdminProfile.vue";
import UserAcceptTask from "../components/UserAcceptTask.vue";
import UserHaveNewTask from "../components/UserHaveNewTask.vue";
import UserInformation from "../components/UserInformation.vue";
import UserRevampInformation from "@/components/UserRevampInformation.vue";
import AdminTaskManagement from "@/components/AdminTaskManagement.vue";
import AdminPasswordReset from "../components/AdminPasswordReset.vue"
import AdminAdd from "@/components/AdminAdd.vue";
import GroupChat from "@/components/GroupChat.vue";
import UserSecuritySettings from "../components/UserSecuritySettings.vue";
import PrivateChat from "../components/PrivateChat.vue"
import AdminMaintenance  from "@/components/AdminMaintenance.vue";
import AdminInstitutionManagement from "@/components/AdminInstitutionManagement.vue";


Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "Home",
        component: Home,
        meta: { title: "首页" },
    },
    {
        path: "/userHaveTask",
        name: "UserHaveTask",
        component: UserHaveTask,
        meta: {title: "已发布任务"}
    },
    {
        path: "/login",
        name: "Login",
        component: Login,
        meta: { title: "登录" },
    },
    {
        path: "/register",
        name: "Register",
        component: Register,
        meta: {title: "注册"}
    },
    {
        path:"/reset-password",
        name: "ResetPassword",
        component: ResetPassword,
        meta: {title: "重置密码"}
    },
    {
        path: "/adminProfile",
        name: "AdminProfile",
        component: AdminProfile,
        meta:{title: "个人信息"}
    },
    {
        path:"/userAcceptTask",
        name: "UserAcceptTask",
        component: UserAcceptTask,
        meta: {title: "接受任务"}
    },
    {
        path:"/adminMaintenance",
        name: "AdminMaintenance",
        component: AdminMaintenance,
        meta: {title: "用户维护"}
    },
    {
        path:"/adminTaskManagement",
        name: "AdminTaskManagement",
        component: AdminTaskManagement,
        meta: {title: "任务管理"}
    },
    {
        path:"/adminInstitutionManagement",
        name: "AdminInstitutionManagement",
        component: AdminInstitutionManagement,
        meta: {title: "院校管理"}
    },
    {
        path:"/userHaveNewTask",
        name: "UserHaveNewTask",
        component: UserHaveNewTask,
        meta: {title: "发布新任务"}
    },
    {
        path:"/userInformation",
        name: "UserInformation",
        component: UserInformation,
        meta: {title: "个人信息"}
    },
    {
        path:"/userRevampInformation",
        name: "UserRevampInformation",
        component: UserRevampInformation,
        meta: {title: "资料修改"}
    },
    {
        path:"/adminPasswordReset",
        name: "AdminPasswordReset",
        component: AdminPasswordReset,
        meta: {title: "修改密码"}
    },
    {
        path: "/AdminAdd",
        name: "AdminAdd",
        component: AdminAdd,
        meta: {title: "添加管理员"}
    },
    {
        path: "/GroupChat",
        name: "GroupChat",
        component: GroupChat,
        meta:{title: "群聊"}
    },
    {
        path: "/PrivateChat",
        name: "PrivateChat",
        component: PrivateChat,
        meta: {title: "私聊"}
    },
    {
        path: "/userSecuritySettings",
        name: "UserSecuritySettings",
        component: UserSecuritySettings,
        meta: {title: "安全设置"}
    },

];

const router = new VueRouter({
    routes,
});

export default router;